package com.fir.my.batis.plus.service.impl;

import com.fir.my.batis.plus.entity.SysUser;
import com.fir.my.batis.plus.mapper.SysUserMapper;
import com.fir.my.batis.plus.service.ISysDeptService;
import com.fir.my.batis.plus.service.ISysUserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 * <p>
 * 用户信息表 服务实现类
 * </p>
 *
 * @author fir
 * @since 2024-05-20 05:59:40
 */
@Service
public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> implements ISysUserService {


    /**
     * 部门表 服务类
     */
    @Resource
    private ISysDeptService iSysDeptService;


    @Transactional
    @Override
    public Boolean up(SysUser sysUser){
        boolean key = this.updateById(sysUser);

        if(true){
            throw new RuntimeException();
        }

        return key;
    }
}
